﻿<%@ Page Language="C#" MasterPageFile="~/Admin/PH_Admin.master" AutoEventWireup="true"
    CodeFile="khachhanglist.aspx.cs" Inherits="Admin_khachhanglist" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h2 style="text-align: center">
        <span style="font-size: 24pt; color: #ffffff">
        Danh sách khách hàng</span></h2>
    Tên khách hàng:
    <asp:TextBox ID="txt_tenkh" runat="server"></asp:TextBox>
    <asp:Button ID="btn_Timkiem" runat="server" Text="Tìm kiếm" OnClick="btn_Timkiem_Click" />
    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
        <HeaderTemplate>
            <table cellspacing="1" width="100%" border="1">
                <tr class="listtableheader">
                    <th>
                        Mã khách hàng</th>
                    <th>
                        Tên khách hàng</th>
                    <th>
                        Địa chỉ</th>
                    <th>
                        Điện thoại</th>
                    <th>
                        Email</th>
                    <th>
                        Mật khẩu</th>
                    <th>
                        Sửa</th>
                    <th align="left">
                        <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                        <a href="javascript:CheckAll(2)">Chọn hết</a>
                    </th>
                </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Literal ID="lit_Ma" runat="server" />
                </td>
                <td>
                    <asp:HyperLink ID="hyp_ten" runat="server"></asp:HyperLink></td>
                <td>
                    <%#Eval("diachi") %>
                </td>
                <td>
                    <%#Eval("dienthoai")%>
                </td>
                <td>
                    <%#Eval("email")%>
                </td>
                <td>
                    <%#Eval("matkhau") %>
                </td>
                <td>
                    <asp:HyperLink ID="hpl_Edit" runat="server">Edit</asp:HyperLink></td>
                <td align="left">
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" runat="server" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <td colspan="8" align="right">
                    <asp:Button ID="btn_xoa" runat="server" Width="80px" Text="Xóa" OnClick="btn_xoa_Click" /></td>
            </tr>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
